package com.lds.erp.common.util;


import com.dph.common.utils.service.BaseAuditOrder;

public class UBeanUtils {



    /**
     * 拷贝对象
     *
     * @param source
     * @param target
     */
    public static void copyUserProperties(Object target) {
        // 用户信息
        AccountCache accountCache = AccountUtils.getAccount();
        if (target instanceof BaseAuditOrder) {
            BaseAuditOrder order = (BaseAuditOrder) target;
            order.setCurrentUserId(accountCache.getMchId());
            order.setCurrentUserName(accountCache.getMchName());
        }
    }
}
